<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
    <link rel="stylesheet" th:href="@{/lib/zTree_v3/css/zTreeStyle/zTreeStyle.css}" type="text/css">
</head>
<body class="timo-layout-page">
    <div class="layui-card">
        <div class="layui-card-header timo-card-header">
            <span><i class="fa fa-bars"></i> 用户管理</span>
            <i class="layui-icon layui-icon-refresh refresh-btn"></i>
            <!--<a th:href="@{/system/user/export}"><i class="fa fa-download"></i></a>-->
        </div>
        <div class="layui-card-body">
            <div class="layui-row timo-card-screen put-row">

            </div>
            <div class="timo-table-wrap">
                <table class="layui-table timo-table">
                    <thead>
                    <tr>
                        <th class="timo-table-checkbox">
                            <label class="timo-checkbox"><input type="checkbox"><i class="layui-icon layui-icon-ok"></i></label>
                        </th>
                        <th>用户ID</th>
                        <th>昵称</th>
                        <th>联系电话</th>
                        <th>头像</th>
                        <th>创建时间</th>
                        <th>状态</th>
                        <!--<th>操作</th>-->
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="item:${list}">
                        <td><label class="timo-checkbox"><input type="checkbox" th:value="${item.id}">
                            <i class="layui-icon layui-icon-ok"></i></label></td>
                        <td th:text="${item.openId}"></td>
                        <td th:text="${item.nickName}"></td>
                        <td th:text="${item.mobile}"></td>
                        <td>
                            <a class="open-popup"  style="cursor: pointer" th:attr="data-url=@{${item.avatar}}" data-size="200,200" href="#">预览</a>
                        </td>
                        <td th:text="${#dates.format(item.createTime, 'yyyy-MM-dd HH:mm:ss')}"></td>
                        <td>正常</td>
                        <!--<td th:text="${#dicts.dataStatus(item.state)}">状态</td>-->
                        <!--<td>-->
                            <!--<a class="open-popup" data-title="编辑机构" th:attr="data-url=@{'/system/user/edit/'+${item.id}}"  data-size="600,570" href="#">编辑</a>-->
                            <!--<a class="open-popup" data-title="详细信息" th:attr="data-url=@{'/system/user/detail/'+${item.id}}"  data-size="800,600" href="#">详细</a>-->
                            <!--<a class="ajax-get" th:attr="data-msg='您是否删除'+${item.nickName}" th:href="@{/system/user/status/delete(ids=${item.id})}">删除</a>-->
                        <!--</td>-->
                    </tr>
                    </tbody>
                </table>
            </div>
            <div th:replace="/common/fragmentSelf :: page"></div>
        </div>
    </div>
<script th:replace="/common/template :: script"></script>
<script type="text/javascript" th:src="@{/js/plugins/jquery-3.3.1.min.js}"></script>
<script type="text/javascript" th:src="@{/lib/zTree_v3/js/jquery.ztree.core.min.js}"></script>
<script type="text/javascript" th:src="@{/js/timoTree.js}"></script>
<script type="text/javascript">
    var local = window.localStorage;
    // 树形菜单
    $.fn.selectTree({
        rootTree: '全部',
        onSelected: function(treeNode){
            local.setItem('deptTitle', treeNode.name);
        }
    });
</script>
</body>
</html>
